import request from "@/utils/request";

export function searchelderlycondition (params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchCheckInInfoByElderly/"+params.elderlycondition ,
    method: "get",
    params

  });

}
export function add (data,type) {
  return request({
    url: "/sinohis/pension/checkin/outregistration/applyToGoOut",
    method: type,
    data

  });

}
export function search (params) {
  return request({
    url: "/sinohis/pension/checkin/outregistration/searchOutRegistrationOfCondition",
    method: "get",
    params

  });

}
//查询机构下可以信息
export function searchuser (params) {
  return request({
    url: "/sinohis/pension/sys/user/all/organ",
    method: "get",
    params

  });

}
//外出申请领导确认
export function confirmToGoOut (data) {
  return request({
    url: "/sinohis/pension/checkin/outregistration/confirmToGoOut",
    method: 'put',
    data

  });

}
//外出返回
export function comeback (data) {
  return request({
    url: "/sinohis/pension/checkin/outregistration/comeback",
    method: 'put',
    data

  });

}
//外出申请添加备注

export function addRemark(data) {
  return request({
    url: "/sinohis/pension/checkin/outregistration/addRemark",
    method: 'put',
    data

  });

}
//外出登记打印

export function outregistration(params) {
  return request({
    url: "/sinohis/pension/checkin/outregistration/print",
    method: "get",
    params
  });
}
